package com.adee.kaoshi;

import java.util.ArrayList;
import java.util.List;

public class Test006 {
    public static void main(String[] args) {
        List<? extends Fruit> fruitList = new ArrayList<Apple>();
//        fruitList.add(new Fruit());
//        Fruit fruit = fruitList.get(0);
//        Apple apple = fruitList.get(0);
//        fruitList.add(new Apple());
    }
}


class Plant {

}

class Fruit extends Plant {

}

class Apple extends Fruit {

}


